/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.uml.internal;

import org.eclipse.gef.ui.actions.ActionRegistry;
import org.eclipse.ui.IStartup;

import edu.pku.sei.modeler.actions.registry.MetaModelActionRegistry;
import edu.pku.sei.modeler.explorer.registry.TreeViewProviderRegistry;
import edu.pku.sei.modeler.project.ProjectRegistry;
import edu.pku.sei.modeler.uml.actionProvider.UMLActionProvider;
import edu.pku.sei.modeler.uml.view.UMLModelContentProvider;
import edu.pku.sei.modeler.uml.view.UMLModelLabelProvider;

/**
 * @generated
 * 
 */
public class GeneratedStartup implements IStartup {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.IStartup#earlyStartup()
	 */
	public void earlyStartup() {
		// System.out.println("generated bundle started");
		GeneratedProjFactory factory = new GeneratedProjFactory();
		ProjectRegistry.getDefault().addProjFactory(factory);
		MetaModelActionRegistry.getDefault().addActionFactory(new UMLActionProvider());
		TreeViewProviderRegistry.getDefault().addTreeViewProvider(
				new UMLModelContentProvider(), new UMLModelLabelProvider());

		// MetaModelView
		// .setMetaModelContentProvider(new UMLModelContentProvider());
		// MetaModelView.setMetaModelLabelProvider(new UMLModelLabelProvider());
		// System.out.println("Generated Start up...");
	}

}
